package hlhj.fhp.checkpoint.javaBean;

import java.util.List;

/**
 * Created by Never Fear   on 2018\11\22 0022.
 * Never More....
 */

public class ProblemBean {

    /**
     * code : 1
     * msg : 操作成功！
     * info : {"current_page":1,"data":[{"id":2,"question":"C","answer":"B"},{"id":1,"question":"这是问题描述","answer":"这是回复"}],"first_page_url":"http://cfwy.com/api/app/common_problem?page=1","from":1,"last_page":1,"last_page_url":"http://cfwy.com/api/app/common_problem?page=1","next_page_url":null,"path":"http://cfwy.com/api/app/common_problem","per_page":10,"prev_page_url":null,"to":2,"total":2}
     */

    private int code;
    private String msg;
    private InfoBean info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public InfoBean getInfo() {
        return info;
    }

    public void setInfo(InfoBean info) {
        this.info = info;
    }

    public static class InfoBean {
        /**
         * current_page : 1
         * data : [{"id":2,"question":"C","answer":"B"},{"id":1,"question":"这是问题描述","answer":"这是回复"}]
         * first_page_url : http://cfwy.com/api/app/common_problem?page=1
         * from : 1
         * last_page : 1
         * last_page_url : http://cfwy.com/api/app/common_problem?page=1
         * next_page_url : null
         * path : http://cfwy.com/api/app/common_problem
         * per_page : 10
         * prev_page_url : null
         * to : 2
         * total : 2
         */

        private int current_page;
        private String first_page_url;
        private int from;
        private int last_page;
        private String last_page_url;
        private Object next_page_url;
        private String path;
        private int per_page;
        private Object prev_page_url;
        private int to;
        private int total;
        private List<DataBean> data;

        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public String getFirst_page_url() {
            return first_page_url;
        }

        public void setFirst_page_url(String first_page_url) {
            this.first_page_url = first_page_url;
        }

        public int getFrom() {
            return from;
        }

        public void setFrom(int from) {
            this.from = from;
        }

        public int getLast_page() {
            return last_page;
        }

        public void setLast_page(int last_page) {
            this.last_page = last_page;
        }

        public String getLast_page_url() {
            return last_page_url;
        }

        public void setLast_page_url(String last_page_url) {
            this.last_page_url = last_page_url;
        }

        public Object getNext_page_url() {
            return next_page_url;
        }

        public void setNext_page_url(Object next_page_url) {
            this.next_page_url = next_page_url;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public int getPer_page() {
            return per_page;
        }

        public void setPer_page(int per_page) {
            this.per_page = per_page;
        }

        public Object getPrev_page_url() {
            return prev_page_url;
        }

        public void setPrev_page_url(Object prev_page_url) {
            this.prev_page_url = prev_page_url;
        }

        public int getTo() {
            return to;
        }

        public void setTo(int to) {
            this.to = to;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * id : 2
             * question : C
             * answer : B
             */

            private int id;
            private String question;
            private String answer;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getQuestion() {
                return question;
            }

            public void setQuestion(String question) {
                this.question = question;
            }

            public String getAnswer() {
                return answer;
            }

            public void setAnswer(String answer) {
                this.answer = answer;
            }
        }
    }
}
